package main

import "fmt"

func main() {
	/*
		s := make([]string, 3)
		s[0] = "a"
		s[1] = "b"
		s[2] = "c"
		fmt.Println("get:", s[2])   // c
		fmt.Println("len:", len(s)) // 3

		s = append(s, "d")
		s = append(s, "e", "f")
		fmt.Println(s) // [a b c d e f]

		c := make([]string, len(s))
		copy(c, s)
		fmt.Println(c) // [a b c d e f]

		fmt.Println(s[2:5]) // [c d e]
		fmt.Println(s[:5])  // [a b c d e]
		fmt.Println(s[2:])  // [c d e f]

		good := []string{"g", "o", "o", "d"}
		fmt.Println(good) // [g o o d]
	*/
	var mm [5]string
	mm[0] = "ddd"
	fmt.Println(mm[0:])
	fmt.Println(mm)

	s := make([]string, 3)
	s[0] = "1"
	s[1] = "1"
	s[2] = "3"
	fmt.Println(s[2])
	fmt.Println(len(s))

	s = append(s, "23")
	fmt.Println(s)
	s = append(s, "323")
	fmt.Println(s)

	s2 := make([]string, len(s))
	copy(s2, s)

	fmt.Println(s2)
	fmt.Println(len(s2))

	good := []string{"cj", "is", "cool"}
	fmt.Println(good)

}
